﻿using UnityEngine;

public interface IElementAura
{
    /// <summary>
    /// 源（由谁附加的，比如：胡桃对丘丘人附加火元素，那么胡桃就是附着源）
    /// </summary>
    GameObject Source { get; set; }

    /// <summary>
    /// 元素类型
    /// </summary>
    ElementType ElementType { get; }

    /// <summary>
    /// 是否元素量衰减
    /// </summary>
    bool IsGaugeLoss { get; set; }

    /// <summary>
    /// 元素量
    /// </summary>
    float Gauge { get; set; }

    /// <summary>
    /// 元素附着
    /// </summary>
    /// <param name="gauge">元素量</param>
    /// <param name="source">源</param>
    void Attach(float gauge, GameObject source);

    void Update(float deltaTime);
}